<%= error_messages_for 'magazine' %>

<!--[form:magazine]-->
<p>
<label for="magazine_name">Nome:</label>
<%= text_field 'magazine', 'name'  %>
</p>

<p>
<label for="magazine_description">Descri&ccedil;&atilde;o:</label>
<%= text_area 'magazine', 'description'  %>
</p>

<p>
<label for="magazine_publisher">Editora:</label>
<%= text_field 'magazine', 'publisher'  %>
</p>

<p>
<label for="magazine_category_id">Categoria:</label>
<%= select('magazine', 'category_id', @categories)   %>
</p>
<!--[eoform:magazine]-->